using System;
using System.Collections.Generic;
using System.Text;

namespace ReportMaintenanceUtility
{
	public static class CompareTo<T> where T : IStateManagement<T>
	{
		public static bool Compare(T obj1, T obj2)
		{
			if (obj1 == null && obj2 == null)
			{
				return true;
			}
			else if (obj1 == null && obj2 != null)
			{
				return false;
			}
			else 
			{
				return obj1.EqualTo(obj2);
			}
		}
	}
}
